package org.example.afiona.service.hystirx;

import org.example.afiona.VO.SentinelOrderInfoVO;
import org.example.afiona.common.VO.ResultVO;
import org.example.afiona.common.utils.ResultVOUtil;
import org.example.afiona.service.SentinelOrderFeignApi;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author: leo
 * @date: 2021/6/9
 */
@Component
public class SentinelOrderFeignHystrix implements SentinelOrderFeignApi {
    @Override
    public ResultVO<List<SentinelOrderInfoVO>> getOrderListByUserId(Integer userId) {
        return ResultVOUtil.error(500, "order service 不可以使用");
    }
}
